#include <stm8s_uart1.h>

void UART1_SendData8_Wait(uint8_t Data)
{
  /* Transmit Data */
  UART1->DR = Data;

  /*[> Wait until end of transmit <]*/
  while (UART1_GetFlagStatus(UART1_FLAG_TXE) == RESET)
  {
  }
}

/**
  * @brief  Transmits 9 bit data through the UART peripheral.
  * @param  Data : The data to transmit.
  *         This parameter should be lower than 0x1FF.
  * @retval None
  */
